package state;

public class NoQuarterState implements State{

    GumballMachine gumballMachine;

    public NoQuarterState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertQuarter() {
        System.out.println("你投了一枚硬币");
        gumballMachine.setState(gumballMachine.getHasQuarterState());
    }

    @Override
    public void ejectQuarter() {
        System.out.println("你还没投币，不能退币");

    }

    @Override
    public void turnCrank() {
        System.out.println("你没投币，请先投币后再抽奖");
    }

    @Override
    public void dispense() {
        System.out.println("请先投币后抽奖");
    }
}
